using MoonFramework.Template;
using Sirenix.OdinInspector;
using UnityEngine;

namespace Config
{
    [CreateAssetMenu(fileName = "地图配置", menuName = "Config/地图配置")]
    public class MapConfig : BaseConfig
    {
        [LabelText("单位地图块的格子数")]
        public int mapBlockSize;
        [LabelText("米/单位格子")]
        public float cellSize;
        [LabelText("噪音间隔")]
        public float noiseLacunarity;
        
        [LabelText("地图材质")]
        public Material mapMaterial;
        [LabelText("森林贴图")]
        public Texture2D forestTexutre;
        [LabelText("沼泽贴图")]
        public Texture2D[] marshTextures;
        
        [LabelText("玩家可视距离")]
        public int viewDinstance;
        [LabelText("动态DisposeBlock的时间限制")] 
        public float timeLimit;
        [LabelText("更新地图块的时间")] 
        public float updateChunkTime;
        [LabelText("地图早晨刷新概率, 1/x")] 
        public int RefreshProbaility;

        [Header("AI")] 
        [LabelText("AI数量限制")] public int MaxAIOnBlock;
        [LabelText("地图块森林/沼泽生成AI的最小顶点数")] public int MinVertexCountForAI;
    }
}